#include "GUI_Switch.h"

lv_obj_t * GUI_Switch_Create(lv_obj_t * father){
    lv_obj_t * switchBtn = lv_switch_create(father);
    lv_obj_set_style_bg_color(switchBtn,GUI_THEME_BG_COLOR03,LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(switchBtn,GUI_THEME_BG_COLOR01, LV_PART_KNOB);
    lv_obj_set_style_bg_color(switchBtn,GUI_THEME_FONT_COLOR01,LV_PART_INDICATOR | LV_STATE_CHECKED);
    return switchBtn;
}
